<?php


namespace App\Admin\Extensions;
use Encore\Admin\Grid\Exporters\ExcelExporter;


class OrdersExporter  extends ExcelExporter
{
    protected $fileName = '订单.xlsx';

    protected $columns = [
        'id'      => 'ID',
        'no'   => '订单号',
        'user_id'   => '用户ID',
        'contact_name'   => '姓名',
        'contact_phone' => '电话',
        'address_detail' => '收货地址',
        'total_amount' => '订单总金额',
        'express_fee' => '运费',
        'pay_type_desc' => '支付方式',//**
        'paid_at' => '支付时间',
        'payment_no' => '商户交易号',
        'ship_name' => '快递名称',
        'ship_no' => '快递单号',
        'sended_at' => '发件时间',
        'product_name' => '商品名称',
        'sku_name' => '规格',
        'product_num' => '商品数量',
        'product_price' => '商品单价',
        'product_price_total' => '商品金额',
        'actual_money' => '实际到账金额',
        'order_status_desc' => '订单状态',
        'created_at' => '订单创建时间',
        'receive_at' => '订单完成时间',
    ];
}